contracted calculation

简算法